package com.blackline.UI.MATCH;


import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Jan, 2013
 * <p>This page is after clicking the edit icon (the "pencil" icon) for an existing Match Set in the MatchSets page. <br>
 * The "edit" in the name means it is editing the Match set.<br>
 * <b>Notice: this page is different from "MatchSetDetails_new" page.</b> <br>
 * Please refer to UI.MatchSetDetails_edit.png in doc-files.
 */
public class MatchSetDetails_edit {
	/**
	 * Save button
	 */
	@FindBy(xpath = "//img[@src='../../Images/Update.gif']")
	public WebElement Save_button;

	/**
	 * Cancel button
	 */
	@FindBy(xpath = "//img[@src='../../Images/Cancel.gif]'")
	public WebElement Cancel_button;
	
	/**
	 * Matching Engine button
	 */
	@FindBy(xpath = "//a[@id='ddMatching']")
	public WebElement Matching_Engine_button;
	
	
	/**
	 * Run Matching Engine option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnRunEngineNow']")
	public WebElement Run_Matching_Engine_inDropdownList;
	
	
	/**
	 * Schedule Matching Engine option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnIRunEngine']")
	public WebElement Schedule_Matching_Engine_inDropdownList;
	
	
	/**
	 * View Matching Engine Status option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnViewMatchingStatus']")
	public WebElement View_Matching_Engine_Status_inDropdownList;
	
	/**
	 * Matched Transactions button
	 */
	@FindBy(xpath = "//a[@id='btnIMatched']")
	public WebElement Matched_Transactions_button;
	
	
	/**
	 * Automatic (xx) option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnAutomatic']")
	public WebElement Automatic_inDropdownList;
	
	
	/**
	 * Suggested (xx) option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnSuggested']")
	public WebElement Suggested_inDropdownList;
	
	
	/**
	 * Manual (0) option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnManual']")
	public WebElement Manual_inDropdownList;
	
	
	/**
	 *Unloaded option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnUnloaded']")
	public WebElement Unloaded_inDropdownList;
	
	
	/**
	 * Suspended option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnSuspended']")
	public WebElement Suspended_inDropdownList;
	
	
	/**
	 * Unmatched Transactions button
	 */
	@FindBy(xpath = "//a[@id='btnIUnmatched']")
	public WebElement Unmatched_Transactions_button;
	
	/**
	 * Archive button
	 */
	@FindBy(xpath = "//a[@id='ddArchive']")
	public WebElement Archive_button;
	
	/**
	 *Schedule Archive option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnScheduleArchive']")
	public WebElement Schedule_Archive_inDropdownList;
	
	
	/**
	 * View Archives option in drop down list
	 */
	@FindBy(xpath = "//a[@id='btnViewArchives']")
	public WebElement View_Archives_inDropdownList;	
	
	/**
	 * "Matching engine successfully scheduled" texts
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_btnResults_blOpResult")
	public WebElement Operation_Result_text;
	
	/**
	 * Description iframe. If you want to input texts into Description text box, you need to switch into this iframe; later you may need to switch back to defaultContent().
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_bleDescriptionCenter")
	public WebElement Description_iframe;
	
	/**
	 * Description text box
	 */
	@FindBy (xpath = "//body")
	public WebElement Description_textBox;
	
	/**
	 * Account adding icon following the Account_textField
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ibKey1")
	public WebElement accountAddingIcon;
	
	/**
	 * Account removing icon following the Account_textField
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ibRemoveKey1")
	public WebElement accountRemovingIcon;
	
	
}
